home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / taropyon / hewin / ccisrc / fdl.h < prev    next >
C/C++ Source or Header  |  1993-11-30  |  2KB  |  33 lines

  1. #ifndef    _FDL_H
  2. #define    _FDL_H
  3.  
  4. /*--------------------------------------------------------------------
  5.     ファイルダイアログの動作モードを指定するマクロ
  6. --------------------------------------------------------------------*/
  7. #define    FDL_MODE_SINGLE            (0x00000001)    /* ファイルをひとつだけ選択/指定        */
  8. #define    FDL_MODE_MULTI            (0x00000002)    /* 複数選択/指定                        */
  9. #define    FDL_MODE_PATH            (0x00000003)    /* ディレクトリ選択/指定                */
  10. #define    FDL_MODE_BIT_DIRIGN        (0x00000080)    /* サブディレクトリの選択/指定を禁止    */
  11. #define    FDL_MODE_BIT_DUPIGN        (0x00000800)    /* 同一ファイル1の選択を禁止する        */
  12. #define    FDL_MODE_BIT_EXIST        (0x00008000)    /* 存在するファイルのみ選択可能            */
  13. #define    FDL_MODE_BIT_SIDEWORK    (0x00010000)    /* サイドーク                            */
  14. #define    FDL_MODE_BIT_DOSCALL    (0x00020000)    /* DOS コマンド                            */
  15. #define    FDL_MODE_DEFAULT    (FDL_MODE_SINGLE|FDL_MODE_BIT_DIRIGN|FDL_MODE_BIT_SIDEWORK)
  16.  
  17. #define    FDL_SORT_OFF        (0)            /* ソートなし        */
  18. #define    FDL_SORT_FILE        (1)            /* ファイル名        */
  19. #define    FDL_SORT_SUB        (2)            /* 拡張子            */
  20. #define    FDL_SORT_DATE        (3)            /* 日付                */
  21. #define    FDL_SORT_SIZE        (4)            /* サイズ            */
  22. #define    FDL_SORT_RVS        (0x80)        /* 昇順/降順        */
  23. #define    FDL_SORT_DIRBIT        (0x60)
  24. #define    FDL_SORT_DIRTOP        (0x00)        /* ディレクトリ先頭    */
  25. #define    FDL_SORT_DIRLAST    (0x20)        /* ディレクトリ最後    */
  26. #define    FDL_SORT_DIROFF        (0x40)        /* ディレクトリ        */
  27.  
  28. #define    FDL_ISSORT_DIRTOP(_sort)    (((_sort)&FDL_SORT_DIRBIT) == FDL_SORT_DIRTOP)
  29. #define    FDL_ISSORT_DIRLAST(_sort)    (((_sort)&FDL_SORT_DIRBIT) == FDL_SORT_DIRLAST)
  30. #define    FDL_ISSORT_DIROFF(_sort)    (((_sort)&FDL_SORT_DIRBIT) == FDL_SORT_DIROFF)
  31.  
  32. #endif
  33.